﻿namespace LujWeb.Internal;

public class FullPathGetter {

  public string Get<T>(T group) where T : WebUrlGroup<T> {
    T? cursor = group;
    string path = "";

    while (cursor != null) {
      path = cursor.Path + path;
      cursor = cursor.Parent;
    }
    return path;
  }
}
